@import "const";
@import "../../shared/color";

.zr-app-home {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	
	//菜单折叠时样式
	&.collapsed {
		.left {
			width: @left-fold-width;
			
			.zr-menu-container {
				top: @header-height + 10;
				left: -16px;
			}
		}
		
		.right {
			left: @left-fold-width;
		}
		
		.zr-logo {
			.profile-user-name {
				width: 0;
			}
		}
		
		.profile-background-mask {
			background-color: rgba(0, 0, 0, 1);
		}
	}
	
	.left {
		position: absolute;
		width: @left-unfold-width;
		top: 0;
		bottom: 0;
		left: 0;
		transition-duration: .4s;
		transition-property: width;
		box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
		z-index: 200;
		text-rendering: optimizeLegibility;
		-webkit-font-smoothing: antialiased;
		background-color: @menu-bg-color;
		
		.zr-header {
			height: @caption-height;
			line-height: @caption-height;
			text-align: center;
			color: #fff;
			font-size: 21px;
			padding: 0 10px;
		}
		
		.zr-version {
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;
			display: flex;
			align-items: center;
			align-content: center;
			
			& > div {
				margin-left: 8px;
				color: #525557;
				font-size: 12px;
			}
		}
	}
	
	.right {
		position: absolute;
		left: @left-unfold-width;
		top: 0;
		bottom: 0;
		right: 0;
		transition-duration: .4s;
		transition-property: left;
	}
}

.hidden {
	display: none !important;
}


//重写antd.modal.message样式
body {
	&.collapsed {
		.ant-modal-wrap {
			.ant-modal:not(.origin){
				position: relative;
				left: @left-fold-width / 2;
			}
		}
	}

	&.expanded {
		.ant-modal-wrap {
			.ant-modal:not(.origin){
				position: relative;
				left: @left-unfold-width / 2;
			}
		}
	}
}

.loading-box {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: @body-background;
}